package com.itheima.springboot_06_demo.service.impl;

import com.itheima.springboot_06_demo.mapper.MemberMapper;
import com.itheima.springboot_06_demo.pojo.Member;
import com.itheima.springboot_06_demo.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public List<Member> list() {
        return memberMapper.list();
    }

    @Override
    public void add(Member member) {
        memberMapper.add(member);
    }
}
